//*************************************************************************
//  StaffMember.java  Java Foundations
//
//  Repersent a generic staff member.
//*************************************************************************

abstract public class StaffMember
{
    protected String name;
    protected String address;
    protected String phone;

    //---------------------------------------------------------------
    //  Constructor: Sets up this staff member using the specified
    //  information.
    //---------------------------------------------------------------
    public StaffMember (String eName, String eAddress, String ePhone)
    {
       name = eName;
       address = eAddress;
       phone = ePhone;
     }
    //------------------------------------------------------------------
    //  Returns a string including the basic employee information.
    //__________________________________________________________________
    public String toString()
    {
        String result = "Name: " + name + "\n";

        result += "Address: " + address + "\n";
        result += "Phone: " + phone;
      
        return result;
     }
    //------------------------------------------------------------------------
    //  Derived classes must define the pay methodeach type of
    //  employee.
    //------------------------------------------------------------------------
    public abstract double pay();
}
